﻿using LinFu.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SW.EF.Core
{
    public interface ILogProvider
    {
        /// <summary>
        /// 记录性能信息
        /// </summary>
        /// <param name="info">动态代理对象</param>
        /// <param name="startTime">开始时间</param>
        /// <param name="useTime">消耗时间</param>
        void LogInfo(InvocationInfo info, DateTime startTime, TimeSpan timeSpan);
        void LogError(InvocationInfo info, DateTime startTime, Exception e);
    }
}
